package com.balabala.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Date;

/**
 * \* User: SuMaLi
 * \* Date: 2020/7/2
 * \* Time: 14:54
 * \
 */
@Controller
public class ThymeleafController {

    @RequestMapping("/test")
    public String test(Model model){
        model.addAttribute("title","苏州·圣诞奇妙日");
        model.addAttribute("time",new Date());
        model.addAttribute("cityName","上海市");
        model.addAttribute("address","上海市静安区天目西路联通国际大厦");
        model.addAttribute("price","999.99");
        return "detail";
    }

}
